#include "StdAfx.h"
#include "ImageObj.h"

CImageObj::CImageObj(void):CShape()
{
	m_shapeStyle = SHAPE_IMAGE;
	m_strPathName = _T("");
}

CImageObj::CImageObj( const CImageObj* pSrc ):CShape(pSrc)
{
	m_shapeStyle = pSrc->getShapeStyle();
	m_strPathName = pSrc->GetPathName();
}

CImageObj::CImageObj( CEntityObj* pParentEnt ):CShape(pParentEnt)
{
	m_shapeStyle = SHAPE_IMAGE;
	m_strPathName = _T("");
}


CImageObj::~CImageObj(void)
{
	
}

void CImageObj::Serialize( CArchive & ar )
{
	if (ar.IsStoring())
	{
		CObj::WriteString(ar, m_strPathName);
	}
	else
		CObj::ReadString(ar, m_strPathName);
	CShape::Serialize(ar);
}

CObj * CImageObj::Clone() const
{
	return new CImageObj(this);
}
